Skip to content

London|26-ITP-January|Alexandru Pocovnicu|Sprint 3|ToDo List#1013

Closed
alexandru-pocovnicu wants to merge 7 commits intoCodeYourFuture:mainfrom
alexandru-pocovnicu:sprint-3-to-do-list
Closed

London|26-ITP-January|Alexandru Pocovnicu|Sprint 3|ToDo List#1013
alexandru-pocovnicu wants to merge 7 commits intoCodeYourFuture:mainfrom
alexandru-pocovnicu:sprint-3-to-do-list

Conversation

@alexandru-pocovnicu
Copy link
Copy Markdown

@alexandru-pocovnicu alexandru-pocovnicu commented Mar 14, 2026

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

created delete button to delete completed tasks

@github-actions

This comment has been minimized.

4 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@alexandru-pocovnicu alexandru-pocovnicu added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 14, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 14, 2026
@alexandru-pocovnicu alexandru-pocovnicu changed the title London|26-ITP-January|Alexandru Pocovnicu|Sprint 3| to do list Use this exact title: London|26-ITP-January|Alexandru Pocovnicu|Sprint 3|ToDo List Mar 14, 2026
@alexandru-pocovnicu alexandru-pocovnicu changed the title Use this exact title: London|26-ITP-January|Alexandru Pocovnicu|Sprint 3|ToDo List London|26-ITP-January|Alexandru Pocovnicu|Sprint 3|ToDo List Mar 14, 2026
@alexandru-pocovnicu alexandru-pocovnicu added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 14, 2026
Comment thread Sprint-3/todo-list/todos.mjs Outdated
}
}
export function deleteCompleted(todoList){
for(let i=todoList.length-1;i>=0;i-- ){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use a formatter to make your code more readable.
"Prettier" in vscode works well.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

test("remove all completed tasks",()=>{
const todoList=createMockTodos()
Todos.deleteCompleted(todoList)
expect(todoList).toHaveLength(2)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can help to make your tests more in-depth so that you catch more bugs in your code.
Try validating more fields and testing one more scenario

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@kyle-tightest kyle-tightest added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 22, 2026
@alexandru-pocovnicu
Copy link
Copy Markdown
Author

thank you

@alexandru-pocovnicu alexandru-pocovnicu added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Apr 2, 2026
@kyle-tightest kyle-tightest added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Apr 2, 2026
@illicitonion
Copy link
Copy Markdown
Member

Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants